<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../lib/react.development.js"></script>
    <script src="../lib/react-dom.development.js"></script>
    <script src="../lib/babel.js"></script>
    <style>
    </style>
</head>
<body>
<div id="example"></div>
<script type="text/jsx">

    function NumberList(props) {
        const numbers = props.numbers;
        const listItems = numbers.map(
                (item,number) => {
                    return   <li data-name={item} key={number.toString()}>
                             {item}
                             </li>
                }

        );
        return (<ul>{listItems}</ul>);
    }

    var numbers = ['lisa', 'jack', 'vane','tony', 'jerry'];
    ReactDOM.render(
        <NumberList numbers={numbers} />,
        document.getElementById('example')
    );


</script>
</body>
</html>